
#ifndef MEHSPANEL_H
#define MESHPANEL_H

#include <BMesh>

#include <BLabel>
#include <BButton>
#include <BCheckBox>
#include <BGroupBox>

using namespace BWE;

class MeshPanel : public BGroupBox
{
	BOBJECT(MeshPanel)
public:
	MeshPanel(BWidget* parent = 0);
	~MeshPanel();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);
	void slotOptimizedToggled(BObject* object, const BValue& value);
	void slotNormalSmoothButtonClicked(BObject* object, const BValue& value);
	void slotFacesReverseButtonClicked(BObject* object, const BValue& value);
	void slotEdgeMergeButtonToggled(BButton* button, const BValue& value);
	void slotEdgeMergeBoardClosed(BButton* button, const BValue& value);

protected:
	virtual void styleEvent(const BEvent& event);

protected:
	BCheckBox*		_optimizedCheckBox;
	BButton*		_normalSmoothButton;
	BButton*		_facesReverseButton;
	BButton*		_edgeMergeButton;
	BLabel*			_vertexCountLabel;
	BLabel*			_normalCountLabel;
	BLabel*			_colorCountLabel;
	BLabel*			_texCoordCountLabel;
	BLabel*			_facesCountLabel;

	BHolder<BMesh>		_mesh;

};

#endif
